<template>
  <div>
    <!-- 跳转中 -->
  </div>
</template>

<script>
export default {
  mounted() {
    // 判断终端设备
    if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
      // alert('这是手机')
      this.$router.push({ path: '/m/index' });
      // this.$router.push({path: '/home/index' });
    } else {
      // alert('这是PC')
      this.$router.push({ path: '/home' });
    }
  },
};
</script>
